From: Jan Beulich Date: Fri, 27 Feb 2015 15:09:27 +0000 (+0100) Subject: complete conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3708^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=5dbdf33c57e3c95125b92f86d847ed8432e28f1c;p=xen.git complete conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd While converting to __cpumask_set_cpu() was correct, the first argument passed should have been corrected to be "cpu" instead of "nr" at once. The wrong construct results in problems on systems with relatively few CPUs. Reported-by: Sander Eikelenboom Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Acked-by: Ian Campbell --- diff --git a/xen/common/softirq.c b/xen/common/softirq.c index bb79aacf78..11e3345397 100644 --- a/xen/common/softirq.c +++ b/xen/common/softirq.c @@ -106,7 +106,7 @@ void cpu_raise_softirq(unsigned int cpu, unsigned int nr) if ( !per_cpu(batching, this_cpu) || in_irq() ) smp_send_event_check_cpu(cpu); else - __cpumask_set_cpu(nr, &per_cpu(batch_mask, this_cpu)); + __cpumask_set_cpu(cpu, &per_cpu(batch_mask, this_cpu)); } void cpu_raise_softirq_batch_begin(void)